home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / README.PLS < prev    next >
Text File  |  1996-07-04  |  4KB  |  66 lines

  1. One of the hardest things about working with screen 12 is getting all the
  2. colors in use while printing text. In fact, it is an impossibility to get
  3. all the backgrounds going at the same time under text without going totally
  4. stark, raving mad! Well, there is only one solution for it! Put you own
  5. characters on the screen. This whole library is dedicated to making the
  6. VGA screen more manageable for text printing.
  7.  
  8. Along with this package is one V-FONT.850 file. It contains the 256 chars
  9. in the 850 code page. I use this one because it serves about 1/2 of all
  10. the languages in the western world. You can make V-FONT files for 437 or
  11. any code page by simply loading the code pages into your computer then
  12. running MAKEFONT.BAS that is located in the UNT directory. If you don't
  13. load any code page then whatever you currently have in/on your computer
  14. will be copied. (can't make it easier than that!)
  15.  
  16. This system also makes your programs independent of any codepage set-up
  17. on your users' computer so you are SURE that what you wrote is what they
  18. see! ( WYWIWTS ?? NOT! )
  19.  
  20. There are also a few printing routines that accept Row/Col addresses like
  21. the LOCATE statement. These addresses are then computed into VGA addresses
  22. and sent to fVprintG% which uses Col/Row VGA addressing. So, you may either
  23. print at an absolute screen address or a Row/Col address as you require.
  24. Like Tprint these routines are looking for CHR$(17) as a color trigger so
  25. you can change attributes within the string. Unlike Tprint, however, you
  26. cannot print more characters than the line will hold. And an incoming Attr?
  27. value of ZERO uses whatever colors are currently in fBackground? and
  28. fForeGround? that you set using GCOLOR or GATTR then, if in the string you
  29. send a CHR$(17,0) you will get black on black or whatever! All these
  30. functions will put your text using fPutFBarr so they are opaque and both
  31. foreground and background colors are used so DON'T USE COLOR XX,XX.
  32.  
  33. The VGA screen has 80 8pixel columns and 30 16pixel rows. So, when you need
  34. to draw a box/button you have to put the vertical lines on the left and
  35. right most pixels of the column but the horizontal lines have to be in the
  36. middle of the text box. Just to make all this easier there are a few cousins
  37. to GBoxXXXX called VBoxXXXX that take care of these computations and are,
  38. once again, called using the Row/Col/Rows/Cols text mode style parameters
  39. like TBoxDRAW.
  40.  
  41. I don't know just how handy all this stuff will be for you but it does bring
  42. the VGA screen a little closer to an efficient tool for text based programs
  43. while allowing for some logical button building. There is even an extension
  44. to fEventOpenT% that will do your 8x16 computations for you. This should
  45. allow you to easily get your mouse into action. While we're on the mouse:
  46. Once again, there is NO mouse support except in fVprintM. This is because
  47. things don't happen, too often, in ones and it is more efficient to turn
  48. the mouse OFF/ON once instead of 20 or 30 times. fVprintM is for those one-
  49. off strings like when editing, etc.
  50.  
  51. If you want to get totally silly and provide italics, underline, transparent
  52. printing, etc. You've got all the tools you need in NBV1 and quick look into
  53. VFONT.UNT will tell all!
  54.  
  55. Have a good one!
  56.  
  57. d83)
  58.  
  59. NOTE: There are 2 .ASM functions from NBT1 that have been copied over
  60.       to NBV3 because you may need them. They are identical to the ones
  61.       in NBT1 except that the CODE SEGMENT has been changed to NBV3 but
  62.       not to worry.
  63.  
  64.       fColor2Attr? ( Fgrnd?, Bgrnd? )
  65.       fTprintLEN%  ( ANYstring, MidPos% )
  66.